package org.example.classtopia.Mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.example.classtopia.Model.dto.ResourceLikeDTO;

@Mapper
public interface ResourceLikeMapper {
    int insertResourceLike(@Param("userId") Long userId, @Param("resourceId") Long resourceId);
    int deleteResourceLike(@Param("userId") Long userId, @Param("resourceId") Long resourceId);
    int countResourceLikes(@Param("resourceId") Long resourceId);
    int hasLiked(@Param("userId") Long userId, @Param("resourceId") Long resourceId);
}
